import request from '@/api/request.js'

// 多媒体资源列表
export const getMultimediaList = (params) => {
    return request({
        url: '/video/getAllFiles',
        method: 'GET',
        params
    })
}
// 多媒体资源根据条件搜索
export const getFilesByCondition = (params) => {
    return request({
        url: '/video/getFilesByCondition',
        method: 'GET',
        params
    })
}
// 多媒体资源上传文件
export const uploadFiles = (data) => {
    return request({
        url: '/video/uploadFiles',
        method: 'POST',
        timeout: 500000,
        data
    })
}
// 多媒体资源下载文件
export const downloadFile = (uuid) => {
    return request({
        url: `/video/downloadFile?uuid=${uuid}`,
        method: 'GET',
        responseType: 'blob'
    })
}
// 多媒体资源删除数据
export const deleteFiles = (data) => {
    return request({
        url: '/video/deleteDocxFilesByUUID',
        method: 'DELETE',
        data
    })
}
